package org.jeecg.modules.app.service;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.app.entity.Customer;
import org.jeecg.modules.app.vo.LoginCustomer;
import org.jeecg.modules.app.vo.RegisterCustomer;
import org.jeecg.modules.app.vo.RemakeVo;

import java.util.List;

/**
 * @author 李圳川
 * @version 1.0
 * @date 2022/6/9 20:31
 * @content
 */
public interface CustomerService{
    /**
     * app顾客登录
     * @param loginCustomer
     * @return
     */
    public Customer login(LoginCustomer loginCustomer);

    /**
     * app顾客注册
     * @param registerCustomer
     * @return
     */
    public Boolean register(RegisterCustomer registerCustomer);


    /**
     * 获取顾客信息
     * @param customerToken
     * @return
     */
    Customer getCustomerByToken(String customerToken);

    /**
     * 更新顾客信息
     * @param customer
     */
    void updateCustomer(Customer customer);

    /**
     * 查询顾客评论信息
     * @param id
     */
   List<RemakeVo> selectCustomerRemakeById(@Param("id")String id);
}
